# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-tcxreader
_pkgorig=tcxreader
pkgver=0.3.14
pkgrel=0
pkgdesc="tcxparser is a reader / parser for Garmin’s TCX file format"
url="https://github.com/alenrajsp/tcxreader"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/tcxreader/tcxreader-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="
dd6809bd8ef2780cd82578249d4fc4d4d023a5c1c3a1c271273e12ff5f861c5a6195bb59047d2d65cb9059dcfad5eba0b31fc7cfc670302444a26405fc6f3be9  py3-tcxreader-0.3.14.tar.gz
"
